﻿using Furion.DatabaseAccessor;
using Jiffy.Common.Infrastructure;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;

namespace Jiffy.Domain.Base
{
    /// <summary>
    /// 系统菜单表种子数据
    /// </summary>
    public class SysMenuSeedData : BaseEntitySeedData<SysMenu>
    {
        /// <summary>
        /// 种子数据
        /// </summary>
        /// <param name="dbContext"></param>
        /// <param name="dbContextLocator"></param>
        /// <returns></returns>
        public IEnumerable<SysMenu> HasData(DbContext dbContext, Type dbContextLocator)
        {
            return new[]
            {                
                new SysMenu{Id=142307070910561, Pid=0, Pids="[0],", Name="分析页", Code="manager_analysis", Type=MenuType.MENU, Router="/analysis", Component="/dashboard/analysis/index", Application="manager", OpenType=MenuOpenType.NONE, Visible="Y", Weight=MenuWeight.DEFAULT_WEIGHT, Sort=0, Status=CommonStatus.ENABLE },
                new SysMenu{Id=142307070910562, Pid=0, Pids="[0],", Name="工作台", Code="manager_workplace", Type=MenuType.MENU, Router="/workplace", Component="/dashboard/workplace/index", Application="manager", OpenType=MenuOpenType.NONE, Visible="Y", Weight=MenuWeight.DEFAULT_WEIGHT, Sort=1, Status=CommonStatus.ENABLE },
            };
        }
    }
}